package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LabProjectDevelopmentProjectMapper;
import com.ruoyi.system.domain.LabProjectDevelopmentProject;
import com.ruoyi.system.service.ILabProjectDevelopmentProjectService;

/**
 * 实验室创建-开发项目Service业务层处理
 * 
 * @author jun.wang
 * @date 2022-04-14
 */
@Service
public class LabProjectDevelopmentProjectServiceImpl implements ILabProjectDevelopmentProjectService 
{
    @Autowired
    private LabProjectDevelopmentProjectMapper labProjectDevelopmentProjectMapper;

    /**
     * 查询实验室创建-开发项目
     * 
     * @param instanceId 实验室创建-开发项目ID
     * @return 实验室创建-开发项目
     */
    @Override
    public LabProjectDevelopmentProject selectLabProjectDevelopmentProjectById(Long instanceId)
    {
        return labProjectDevelopmentProjectMapper.selectLabProjectDevelopmentProjectById(instanceId);
    }

    /**
     * 查询实验室创建-开发项目列表
     * 
     * @param labProjectDevelopmentProject 实验室创建-开发项目
     * @return 实验室创建-开发项目
     */
    @Override
    public List<LabProjectDevelopmentProject> selectLabProjectDevelopmentProjectList(LabProjectDevelopmentProject labProjectDevelopmentProject)
    {
        return labProjectDevelopmentProjectMapper.selectLabProjectDevelopmentProjectList(labProjectDevelopmentProject);
    }

    /**
     * 新增实验室创建-开发项目
     * 
     * @param labProjectDevelopmentProject 实验室创建-开发项目
     * @return 结果
     */
    @Override
    public int insertLabProjectDevelopmentProject(LabProjectDevelopmentProject labProjectDevelopmentProject)
    {
        labProjectDevelopmentProject.setCreateTime(DateUtils.getNowDate());
        return labProjectDevelopmentProjectMapper.insertLabProjectDevelopmentProject(labProjectDevelopmentProject);
    }

    /**
     * 修改实验室创建-开发项目
     * 
     * @param labProjectDevelopmentProject 实验室创建-开发项目
     * @return 结果
     */
    @Override
    public int updateLabProjectDevelopmentProject(LabProjectDevelopmentProject labProjectDevelopmentProject)
    {
        return labProjectDevelopmentProjectMapper.updateLabProjectDevelopmentProject(labProjectDevelopmentProject);
    }

    /**
     * 批量删除实验室创建-开发项目
     * 
     * @param instanceIds 需要删除的实验室创建-开发项目ID
     * @return 结果
     */
    @Override
    public int deleteLabProjectDevelopmentProjectByIds(Long[] instanceIds)
    {
        return labProjectDevelopmentProjectMapper.deleteLabProjectDevelopmentProjectByIds(instanceIds);
    }

    /**
     * 删除实验室创建-开发项目信息
     * 
     * @param instanceId 实验室创建-开发项目ID
     * @return 结果
     */
    @Override
    public int deleteLabProjectDevelopmentProjectById(Long instanceId)
    {
        return labProjectDevelopmentProjectMapper.deleteLabProjectDevelopmentProjectById(instanceId);
    }
}
